package cn.tedu.rms.cart.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CartVO {
    @ApiModelProperty(value = "购物车中记录id")
    private Long id;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "菜品id")
    private Long dishId;
    @ApiModelProperty(value = "菜品名称")
    private String dishName;
    @ApiModelProperty(value = "菜品价格")
    private Float price;
    @ApiModelProperty(value = "菜品数量")
    private String number;
    @ApiModelProperty(value = "每一项的总价")
    private Float totalPrice;
    @ApiModelProperty(value = "菜品图片地址")
    private String imgUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "分店id")
    private Long BranchId;
}
